import { SDKBase } from "../sdk/SDKBase";
import WeChatSDK from "../sdk/WeChatSDK";

/**
 * SDK工具
 */
export default class SDKUtil {
    /**
     * 根据当前环境获取SDK对象
     * @returns 
     */
    public static getSDK(): SDKBase {
        let sdk: SDKBase = null
        switch (cc.sys.platform) {
            case cc.sys.WECHAT_GAME:
                sdk = new WeChatSDK()
                break;
            // TODO: Cocos 2.4.2才支持字节平台
            // case cc.sys.BYTEDANCE_GAME:
            //     break;
        }

        return sdk
    }
}